
/**
 * 	 全局方法
 * 
 * 
 */
let pageStatus = true;
export default{
	// 回退事件
	navigateBackFn() {
		uni.navigateBack();
	},
	navigateToFn(url){
		if(!pageStatus) return
		pageStatus = false;
		uni.navigateTo({
			 // animationType: 'pop-in',
			url: url,
			complete: () => {
				console.log('跳转成功')
				pageStatus = true;
			}
		});
	},
	navigateToQueryFn(url,query = ''){
		console.log(url,query,`${url}?id=${query}`)
		uni.navigateTo({
			"animationType": "zoom-fade-out",
			url: `${url}?id=${query}`,
		});
	}
	
}